package com.example.mystore.model;


import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

public class Order {
    private Integer id;             // 订单ID，自动增长列
    private BigInteger orderNo;           // 订单编号
    private Integer uid;            // 用户编号
    private Integer addrId;         // 收货地址编号
    private BigDecimal amount;      // 订单付款金额
    private Integer type;           // 付款类型，1-在线支付，2-货到付款
    private Integer freight;        // 运费
    private Integer status;         // 订单状态，1-未付款，2-已付款，3-已发货，4-交易成功，5-交易关闭，6-已取消
    private Date paymentTime;       // 支付时间
    private Date deliveryTime;      // 发货时间
    private Date finishTime;        // 交易完成时间
    private Date closeTime;         // 交易关闭时间
    private Date created;           // 创建时间
    private Date updated;           // 更新时间

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigInteger getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(BigInteger orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getAddrId() {
        return addrId;
    }

    public void setAddrId(Integer addrId) {
        this.addrId = addrId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getFreight() {
        return freight;
    }

    public void setFreight(Integer freight) {
        this.freight = freight;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public Date getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }
}
